package com.hm.hsw4;

public class CalculatorDemo {
    public static void main(String[] args) {
        String s = useCalculator(new Calculator() {
            @Override
            public String calc(String s) {
                return s;
            }
        });
        System.out.println(s);
        String s3 = useCalculator(s2 -> s2);
        System.out.println(s3);


    }
    public static String useCalculator(Calculator calculator){
        return calculator.calc("花开花落");
    }
}
